package com.bite.ioc.controller;

import com.bite.ioc.model.UserInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2025-05-16
 * Time:15:11
 */
@Controller("usercon")
public class UserController {
//    @Qualifier("userInfo1")
//    @Autowired
    @Resource(name="UCInfo")
    private UserInfo user;
    public void sayHi(){
        System.out.println(user);
        System.out.println("hi,user,controller...");
    }
}
